//
//  WHYHeadLine.m
//  News163
//
//  Created by 王洪运 on 16/1/1.
//  Copyright © 2016年 王洪运. All rights reserved.
//

#import "WHYHeadLine.h"



@implementation WHYHeadLine

+(NSArray<WHYHeadLine *> *)headLinesWithDictArray:(NSArray<NSDictionary *> *)dictArr {
    
    NSMutableArray *modelArr = [NSMutableArray array];
    
    for (NSDictionary *dict in dictArr) {
        WHYHeadLine *headLine = [WHYHeadLine headLineWithDict:dict];
        [modelArr addObject:headLine];
    }
    
    return [modelArr copy];
}

-(instancetype)initWithDict:(NSDictionary *)dict {
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+(instancetype)headLineWithDict:(NSDictionary *)dict {
    return [[self alloc] initWithDict:dict];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {}

@end
